# 子类父类

class Animal:
    def __init__(self, ani):
        self.setType(ani)
    def setType(self, ani):
        self.__aniType = ani
    def getType(self):
        return self.__aniType

class Dog(Animal):
    def __init__(self, dogName):
        self.__name = dogName
        self.setType('Dog')
    def getName(self):
        return self.__name

hashiq = Dog('hashi')

# print('type: %s, name: %s' % (hashiq.getType(), hashiq.getName()))

print(dir(Dog))